package com.bjqg.bjqg01.bjqg.activity.longrange.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bjqg.bjqg01.bjqg.R;
import com.bjqg.bjqg01.bjqg.activity.BaseActivity;
import com.bjqg.bjqg01.bjqg.activity.CommissionedActivity;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by bjqg01 on 2018/9/3.
 */

public class MultipleActivity extends BaseActivity {

    @BindView(R.id.back)
    ImageView back;
    @BindView(R.id.tv_top_title_drawer)
    TextView tvTopTitleDrawer;
    @BindView(R.id.tv_search_top_drawer)
    TextView tvSearchTopDrawer;
    @BindView(R.id.seekcljc_sn)
    AutoRelativeLayout seekcljcSn;
    @BindView(R.id.seekcljc_jl)
    AutoRelativeLayout seekcljcJl;
    @BindView(R.id.seekcljc_chl)
    AutoRelativeLayout seekcljcChl;
    @BindView(R.id.seekcljc_hnt)
    AutoRelativeLayout seekcljcHnt;
    @BindView(R.id.seekcljc_jzgc)
    AutoRelativeLayout seekcljcJzgc;
    @BindView(R.id.seekcljc_qtcl)
    AutoRelativeLayout seekcljcQtcl;
    @BindView(R.id.seekcljc_fscl)
    AutoRelativeLayout seekcljcFscl;
    @BindView(R.id.seekcljc_mcmq)
    AutoRelativeLayout seekcljcMcmq;
    @BindView(R.id.seekcljc_jncl)
    AutoRelativeLayout seekcljcJncl;
    @BindView(R.id.seekcljc_jzdq)
    AutoRelativeLayout seekcljcJzdq;
    @BindView(R.id.seekcljc_gwcl)
    AutoRelativeLayout seekcljcGwcl;
    @BindView(R.id.seekcljc_zscl)
    AutoRelativeLayout seekcljcZscl;
    @BindView(R.id.seekcljc_szgc)
    AutoRelativeLayout seekcljcSzgc;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_multiple);
        ButterKnife.bind(this);
        initdata();
    }

    private void initdata() {
        tvTopTitleDrawer.setText("工程复复试委托");
        tvSearchTopDrawer.setVisibility(View.INVISIBLE);
    }

    @OnClick({R.id.back, R.id.seekcljc_sn, R.id.seekcljc_jl, R.id.seekcljc_chl, R.id.seekcljc_hnt, R.id.seekcljc_jzgc
            , R.id.seekcljc_qtcl, R.id.seekcljc_fscl, R.id.seekcljc_mcmq, R.id.seekcljc_jncl, R.id.seekcljc_jzdq,
            R.id.seekcljc_gwcl, R.id.seekcljc_zscl, R.id.seekcljc_szgc})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.seekcljc_sn:
                Intent tocommen = new Intent(MultipleActivity.this, MultipleListActivity.class);
                tocommen.putExtra("name", "远程委托-水泥");
                tocommen.putExtra("id", "1");
                startActivity(tocommen);
                break;
            case R.id.seekcljc_jl:
                Intent tomultip = new Intent(MultipleActivity.this, MultipleListActivity.class);
                tomultip.putExtra("name", "远程委托-集料");
                tomultip.putExtra("id", "2");
                startActivity(tomultip);
                break;
            case R.id.seekcljc_chl:
                Intent towj = new Intent(MultipleActivity.this, MultipleListActivity.class);
                towj.putExtra("name", "远程委托-掺合料及外加剂");
                towj.putExtra("id", "3");
                startActivity(towj);
                break;
            case R.id.seekcljc_hnt:
                Intent tohnt = new Intent(MultipleActivity.this, MultipleListActivity.class);
                tohnt.putExtra("name", "远程委托-混凝土及砂浆制品");
                tohnt.putExtra("id", "4");
                startActivity(tohnt);
                break;
            case R.id.seekcljc_jzgc:
                Intent togc = new Intent(MultipleActivity.this, MultipleListActivity.class);
                togc.putExtra("name", "远程委托-建筑钢材");
                togc.putExtra("id", "5");
                startActivity(togc);
                break;
            case R.id.seekcljc_qtcl:
                Intent toqt = new Intent(MultipleActivity.this, MultipleListActivity.class);
                toqt.putExtra("name", "远程委托-墙体材料");
                toqt.putExtra("id", "6");
                startActivity(toqt);
                break;
            case R.id.seekcljc_fscl:
                Intent tofs = new Intent(MultipleActivity.this, MultipleListActivity.class);
                tofs.putExtra("name", "远程委托-防水材料");
                tofs.putExtra("id", "7");
                startActivity(tofs);
                break;
            case R.id.seekcljc_mcmq:
                Intent tomq = new Intent(MultipleActivity.this, MultipleListActivity.class);
                tomq.putExtra("name", "远程委托-建筑门窗幕墙");
                tomq.putExtra("id", "8");
                startActivity(tomq);
                break;
            case R.id.seekcljc_jncl:
                Intent tojn = new Intent(MultipleActivity.this, MultipleListActivity.class);
                tojn.putExtra("name", "远程委托-建筑节能材料");
                tojn.putExtra("id", "9");
                startActivity(tojn);
                break;
            case R.id.seekcljc_jzdq:
                Intent todq = new Intent(MultipleActivity.this, MultipleListActivity.class);
                todq.putExtra("name", "远程委托-建筑电器");
                todq.putExtra("id", "10");
                startActivity(todq);
                break;
            case R.id.seekcljc_gwcl:
                Intent togw = new Intent(MultipleActivity.this, MultipleListActivity.class);
                togw.putExtra("name", "远程委托-管网材料");
                togw.putExtra("id", "11");
                startActivity(togw);
                break;
            case R.id.seekcljc_zscl:
                Intent tozs = new Intent(MultipleActivity.this, MultipleListActivity.class);
                tozs.putExtra("name", "远程委托-建筑装饰材料");
                tozs.putExtra("id", "12");
                startActivity(tozs);
                break;
            case R.id.seekcljc_szgc:
                Intent toty = new Intent(MultipleActivity.this, MultipleListActivity.class);
                toty.putExtra("name", "远程委托-通用");
                toty.putExtra("id", "13");
                startActivity(toty);
                break;


        }
    }

}
